org.eclipse.vtp.framework.engine
Class ResourceGroup

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.ResourceGroup
All Implemented Interfaces:
IResourceManager

public class ResourceGroup
extends java.lang.Object
implements IResourceManager

A group of public resources.

Author:
Lonnie Pryor

Constructor Summary
ResourceGroup(org.osgi.framework.Bundle bundle, java.lang.String path)
          Creates a new ResourceGroup.
 
Method Summary
 java.net.URL getResource(java.lang.String fullResourcePath)
          Returns the requested resource.
 boolean isDirectoryResource(java.lang.String fullDirectoryPath)
           
 boolean isFileResource(java.lang.String fullFilePath)
           
 java.lang.String[] listResources(java.lang.String fullDirectoryPath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceGroup

public ResourceGroup(org.osgi.framework.Bundle bundle,
                     java.lang.String path)
Creates a new ResourceGroup.

Parameters:
bundle - The bundle to load from.
path - The base path to publish.
Method Detail

getResource

public java.net.URL getResource(java.lang.String fullResourcePath)
Returns the requested resource.

Parameters:
fullResourcePath - The path of the resource to return.
Returns:
The requested resource.

listResources

public java.lang.String[] listResources(java.lang.String fullDirectoryPath)
Specified by:
listResources in interface IResourceManager

isDirectoryResource

public boolean isDirectoryResource(java.lang.String fullDirectoryPath)
Specified by:
isDirectoryResource in interface IResourceManager

isFileResource

public boolean isFileResource(java.lang.String fullFilePath)
Specified by:
isFileResource in interface IResourceManager